import { Component, OnInit } from '@angular/core';

import { PersonInfo } from '../person-info';

@Component({
  selector: 'app-info-show',
  templateUrl: './info-show.component.html',
  styleUrls: ['./info-show.component.less']
})
export class InfoShowComponent implements OnInit {

  private personInfo = new PersonInfo('', '', '', '', '');

  constructor() { }

  ngOnInit() {
    // 从本地存储取出personInfo
    this.personInfo = JSON.parse(localStorage.getItem('info'));
  }
}
